<?php
include_once("../module/checkA.php");
include_once("../../config.php"); 
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'activity'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid']; 

//接收需要修改的数据的id
$new_detail_nid = addslashes($_REQUEST['nid']);


$_REQUEST['ai_date']  = $_REQUEST['ai_date'] == '' ? '' : strtotime(addslashes($_REQUEST['ai_date']));


//设置需要搜索的表格的前缀后缀
$table_Suffix = 'register';
$table        = $table_Prefix . $table_Suffix;


$sql=update_date($table,$_REQUEST,"nid",$new_detail_nid);

$query = do_query($sql) or die ($sql);
mysqli_close($con);


$nowpageid = $_GET["nowpageid"];
$activity_id = $_REQUEST["activity_id"];

?>


<script type="text/javascript">

     alert("输入信息已保存，点击确认返回继续操作.");
     document.location.href = "detail-list-register.php?activity_id=<?php echo $activity_id?>&nowpageid=<? echo $nowpageid ?>&sortby=<? echo $sortby?>&nid=<? echo $term_nid ?>&sys_part=<? echo $system_part ?>nav-itemed=activity"

</script>


</body>